package com.saunter.utils.response;

import java.util.HashMap;
import java.util.Map;

public class SuccessResponse extends Response {
    private Object data;
    protected SuccessResponse(Object data) {
        this.code = "1";
        this.data = data;
    }
    public Map<String, Object> toResponse(){
        Map<String, Object> response = new HashMap<String, Object>();
        response.put("s", this.code);
        response.put("d", this.data);
        return response;
    }
}
